package com.sunnada.demo.service.serviceimpl;

import com.sunnada.demo.bean.Cat;
import com.sunnada.demo.dao.CatDao;
import com.sunnada.demo.service.CatService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("CatService")
public class CatServiceimpl implements CatService {

    @Resource
    private CatDao catDao;

    public Cat getById(String id){
        return catDao.getById(Integer.parseInt(id));
    }

    public List<Cat> getList(){
        return catDao.getList();
    }
}
